package com.itheima.reggie.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

public interface DishService extends IService<Dish> {
    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
     void saveWithFlavor(DishDto dishDto);
     DishDto getByIdWithFlavor(Long id);
     void updateWithFlavor(DishDto dishDto);
    R<IPage> findByPage(int page, int pageSize, String name);
}
